home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr48
/
pavt117.zip
/
QUERIES.DOC
< prev
next >
Wrap
Text File
|
1993-04-24
|
3KB
|
77 lines
Avatar level 1 console
Valid query types and their responses
An Informal Document
I never did see any documentation on the different types of
queries which can be made by the AVT/1 query (^V^Q<q>)
command. That is why I took the time to experiment with
avatar.sys and come up with the following list of queries:
All of these are prefaced (naturally) by the ^V^Q query
command and the byte which follows determines the response.
If the parser is in Cooked mode the responses will be cooked
where appropriate.
^A and ^B -- These return a valid set attribute command in
the form of ^V^A<a>.
^H -- This one returns an appropriate set cursor position
command to indicate the current cursor position. (ex:
^V^H^A^A)
^Q -- This query is the best known. It returns a string with
the following format: "AVTn, Copyright or program info+^M"
Where n is a 0 or a 1 depending upon the level of avatar
completely supported. (0 means level 0+, not level 0). The
copyright or program info is basically junk unless you're
really interested in what program the remote terminal is
running.
^V -- This returns the appropriate define window command
describing the active window. (ex: ^V^V#0^G^A^A^Y#80)
^W -- This command, similar to the last, return a set window
command to indicate the current window. (ex: ^V^W#0)
FS,GS (Ascii 28,29) -- These queries indicate wether or not
the interpreter is asleep or not. They return either a go to
sleep or wake up command. (ex: ^VGS when awake)
RS,US (Ascii 30,31) -- These two queries return the current
status of vertical mode for the current window. As with all
the queries, they return the avatar command capable of setting
the current mode.
'#','"','$' -- Like the last ones, these return the
appropriate command to set the end of line wrap mode. (none,
normal, zigzag).
'%','&' -- These two return the status of line feeds. (move
up or move down).
'(',')' -- These return wether or not we are in reverse mode.
':' -- This returns the current keyboard mode through a
command (ex: ^V:0)
'=' -- This is an important one for the server to pay
attention to as the remote terminal get's the final decision
on wether or not it stays in cooked mode. This returns the
command to set the parser into cooked or raw mode.
If you haven't noticed, the query types all correspond to
their avatar command. They also return a complete Avatar
command to the server. Currently I wouldn't expect every
AVT/1 console to know about these queries, but hopefully this
document will help fix that problem.
Greg Smith